# -*- coding:utf-8 -*-
# api/hello.py

from sanic import Blueprint, request, response
from sanic_ext import openapi


bp_hello_v1 = Blueprint('Test', url_prefix='hello', version=1)


@bp_hello_v1.get('/')
@openapi.definition(
    tag='测试',
    summary='Test Say Hello',
    description='Test GET Request.',
    parameter=[]
)
async def test_say_hello(request: request.Request):
    return response.text('hello')
